import Vue from 'vue'
import Router from 'vue-router'
// import Home from './views/home'

Vue.use(Router)

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            redirect: '/tenant'
            // name: 'home',
            // component: Home
        }, {
            path: '/home',
            name: 'home',
            component: () => import(/* webpackChunkName: "home" */ './views/home')
        }, {
            path: '/tenant',
            name: 'tenant',
            component: () => import(/* webpackChunkName: "tenant" */ './views/tenant')
        }, {
            path: '/time',
            name: 'time',
            component: () => import(/* webpackChunkName: "time" */ './views/time')
        }, {
            path: '/partner',
            name: 'partner',
            component: () => import(/* webpackChunkName: "partner" */ './views/partner')
        }
    ]
})
